#ifndef RANGE_FILE_H
#define RANGE_FILE_H

#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

struct stat get_fileinfo(const char *filename);

size_t uploadfile(const char *filename, size_t rangeStartPos, const char *buf, size_t buflen);
size_t downloadfile(const char *src_filename, const char* dst_filename, size_t rangeStartPos, size_t uploadlen);

#endif // RANGE_FILE_H
